﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using nsadv.Statistic.Domain;

namespace nsadv.Statistic.Web.Security
{
	[AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = true)]
	public class RoleRequired: System.Attribute
	{
		public UserRole Role { get; private set; }
		public string Error { get; private set; }
		public RoleRequired(UserRole role, string error = "")
		{
			Role = role;
			Error = error;
		}
	}
}